﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Eacademy.Domain.Models.AdminStudentsViewModel>" %>
<%
    if (!String.IsNullOrEmpty(Model.ThumbImageName))
    {
%>
<img src="<%=Model.ThumbImagePathName%>" width="200" />
<%
    }
        else
        {%>
<img src="/content/images/default_avatar.jpg" width="200" height="200" />
<%
    }
%>
<%: Html.ActionLink("Edit Profile","Edit",new{controller = "Profile", area = "Student"},new{@class="link"}) %>
<ul class="profile">
    <li>Name:
        <%=String.Format("{0} {2}",Model.FirstName,Model.MiddleName,Model.LastName) %></li>
    <li>Student Number: <%=Model.StudentNumber %></li>
</ul>
